//package com.yuan.spring.messagequeue.rabbitMq;
//
//import com.alibaba.fastjson.JSONObject;
//import org.springframework.amqp.rabbit.annotation.RabbitHandler;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.stereotype.Component;
//
//import java.util.Map;
//
//@Component
//@RabbitListener(queues = RabbitConfig.SFG_MESSAGE_QUEUE)
//public class Receiver {
//
//    @RabbitHandler
//    public void processMessage(Map<String, String> map) throws Exception {
//        System.out.println("【接收到rabbitMq消息】");
//        System.out.println(JSONObject.toJSONString(map));
//        Thread.sleep(2000);
//    }
//
//
//}